package com.zhuiyun.project.api.videosorting.service;

import com.zhuiyun.project.api.imagesorting.entity.ImageSorting;
import com.zhuiyun.project.api.videosorting.entity.VideoSorting;
import com.zhuiyun.project.common.errorCode.CommonException;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @ClassName VideoSortingService
 * @Description 视频排序service接口
 * @Author zsc
 * @Date 2024/12/9 19:25
 */
public interface VideoSortingService {

    /**
    * @Author zsc
    * @Description 新增视频排序
    * @Date 2024/12/9 19:46
    * @Return int
    * @param videoSorting
    * @param img
    * @param video
    */
    int saveVideoSorting(VideoSorting videoSorting, MultipartFile img, MultipartFile video) throws CommonException;

    /**
    * @Author zsc
    * @Description 删除视频排序
    * @Date 2024/12/9 19:57
    * @Return int
    * @param id
    * @param imgId
    * @param videoId
    */
    int deleteVideoSorting(int id, int imgId, int videoId) throws CommonException;

    /**
    * @Author zsc
    * @Description 修改视频排序
    * @Date 2024/12/9 20:04
    * @Return int
    * @param videoSorting
    * @param img
    * @param video
    */
    int updateVideoSorting(VideoSorting videoSorting, MultipartFile img, MultipartFile video) throws CommonException;

    /**
    * @Author zsc
    * @Description 查询视频排序
    * @Date 2024/12/9 20:10
    * @Return java.util.List<com.zhuiyun.project.api.videosorting.entity.VideoSorting>
    */
    List<VideoSorting> getVideoSortingList();
}
